<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            /* 透视 */
            perspective: 500px;
        }
        img {
            display: block;
            margin: 100px auto;
            width: 300px;
           transition: all 3s;
        }
        img:hover {
            /*沿着Y轴旋转45度，单位deg */
           transform: rotateY(180deg);
        }
    </style>
</head>
<body>
    <img src="images/图层1.png" alt="">
</body>
</html>